﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Login/AdminMaster.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="Tailor_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .gridCss
        {
            font-size: 15px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
   <%-- <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>--%>
    <asp:HiddenField ID="hfLoginID" runat="server" />
 <div>
        <h1>
            Tailor</h1>
        <table width="100%" style="font-size: 15px;">
            <tr>
                <td valign="top">
                    <table>
                        <tr>
                            <td>
                                অর্ডার নাম্বার
                            </td>
                            <td>
                                <asp:TextBox ID="txtOrderNo" runat="server" Enabled="false"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                কাস্টমার ফোন
                            </td>
                            <td>
                                <asp:TextBox ID="txtCustomerPhone" runat="server" AutoPostBack="true" OnTextChanged="txtCustomerPhone_TextChanged"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                কাস্টমার আইডি
                            </td>
                            <td>
                                <asp:TextBox ID="txtCustomerID" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                কাস্টমার নাম
                            </td>
                            <td>
                                <asp:TextBox ID="txtCustomerName" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <br />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                অর্ডার সংখ্যা
                            </td>
                            <td>
                                <asp:TextBox ID="txtTotalQty" runat="server" Enabled="false"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                সর্বমোট
                            </td>
                            <td>
                                <asp:TextBox ID="txtTotalCharge" runat="server" Enabled="false"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ফেব্রিক্স ডিউ
                            </td>
                            <td>
                                <asp:TextBox ID="txtFabricDue" runat="server" Text="0" AutoPostBack="True" 
                                    ontextchanged="txtFabricDue_TextChanged"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ডিজাইন চার্জ
                            </td>
                            <td>
                                <asp:TextBox ID="txtDesignCharge" runat="server" Text="0" AutoPostBack="True" 
                                    ontextchanged="txtDesignCharge_TextChanged"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ডিসকাউন্ট
                            </td>
                            <td>
                                <asp:TextBox ID="txtDiscount" runat="server" Text="0" AutoPostBack="True" 
                                    ontextchanged="txtDiscount_TextChanged"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                মোট টাকা
                            </td>
                            <td>
                                <asp:TextBox ID="txtTotalPayable" runat="server" Text="0"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                জমা(নগদ টাকা)
                            </td>
                            <td>
                                <asp:TextBox ID="txtPaymentCash" runat="server" Text="0" AutoPostBack="True" 
                                    ontextchanged="txtDesignCharge_TextChanged"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                জমা(কার্ড DBBL)
                            </td>
                            <td>
                                <asp:TextBox ID="txtPaymentCardDBBL" runat="server" Text="0" AutoPostBack="True" 
                                    ontextchanged="txtDesignCharge_TextChanged"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                জমা(কার্ড CITY)
                            </td>
                            <td>
                                <asp:TextBox ID="txtPaymentCardCITY" runat="server" Text="0" AutoPostBack="True" 
                                    ontextchanged="txtDesignCharge_TextChanged"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                বাকি
                            </td>
                            <td>
                                <asp:TextBox ID="txtDUE" runat="server" Text="0"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ট্রায়াল ডেট
                            </td>
                            <td>
                                <asp:TextBox ID="txtTrialDate" runat="server"></asp:TextBox>
                                <ajaxToolkit:CalendarExtender Format="dd MMM yyyy" ID="CalendarExtender2" runat="server"
                                TargetControlID="txtTrialDate">
                            </ajaxToolkit:CalendarExtender>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                ডেলিভারি ডেট
                            </td>
                            <td>
                                <asp:TextBox ID="txtDelivaryDate" runat="server"></asp:TextBox>
                                <ajaxToolkit:CalendarExtender Format="dd MMM yyyy" ID="CalendarExtender1" runat="server"
                                TargetControlID="txtDelivaryDate">
                            </ajaxToolkit:CalendarExtender>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                অর্ডার ডেট
                            </td>
                            <td>
                                <asp:TextBox ID="txtOrderDate" runat="server"></asp:TextBox>
                                <ajaxToolkit:CalendarExtender Format="dd MMM yyyy" ID="CalendarExtender3" runat="server"
                                TargetControlID="txtOrderDate">
                            </ajaxToolkit:CalendarExtender>
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <asp:Button ID="btnSubmit" runat="server" Text="Submit" 
                                    onclick="btnSubmit_Click" />
                            </td>
                        </tr>
                    </table>
                </td>
                <td valign="top">
                    <table>
                        <tr>
                            <td>
                                <asp:RadioButtonList ID="ddlItem" runat="server" RepeatDirection="Horizontal" AutoPostBack="true"
                                    Font-Size="20px" RepeatColumns="7" OnSelectedIndexChanged="ddlItem_SelectedIndexChanged">
                                </asp:RadioButtonList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                মাস্টার নাম:
                                <asp:DropDownList ID="ddlMasterName" runat="server">
                                </asp:DropDownList>
                                সংখ্যা :
                                <asp:TextBox ID="txtItemQty" runat="server" Width="30px" Text="1"></asp:TextBox>
                                চার্জ:
                                <asp:TextBox ID="txtItemCharge" runat="server" Width="50px" Text="0"></asp:TextBox>
                                <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" />
                                
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Note:<asp:DropDownList ID="ddlExtraDesign" runat="server" AutoPostBack="True" 
                                    onselectedindexchanged="ddlExtraDesign_SelectedIndexChanged">
                                </asp:DropDownList>
                                <br />
                                <asp:TextBox ID="txtNote" runat="server" TextMode="MultiLine" Width="600px" Height="50px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table>
                                    <tr>
                                        <td valign="top">
                                            <asp:GridView ID="gvMeasurement" runat="server" AutoGenerateColumns="false" CssClass="gridCss">
                                                <Columns>
                                                    <asp:TemplateField>
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblMeasurement" Font-Size="15px" runat="server" Text='<%#Eval("Name") %>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="মাপ">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="txtAmount" runat="server" ToolTip='<%#Eval("ID") %>' Width="50px"></asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                            </asp:GridView>
                                        </td>
                                        <td valign="top" align="center">
                                            <asp:GridView ID="gvDesign" runat="server" AutoGenerateColumns="false" CssClass="gridCss">
                                                <Columns>
                                                    <asp:TemplateField HeaderText="">
                                                        <ItemTemplate>
                                                            <asp:Label ID="Label1" runat="server" Text='<%#Eval("Group") %>' Font-Size="15px"></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="ডিজাইন">
                                                        <ItemTemplate>
                                                            <asp:CheckBox ID="chkSelect" runat="server" ToolTip='<%#Eval("ID") %>' Font-Size="15px"
                                                                Text='<%#Eval("Name") %>' />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                            </asp:GridView>
                                        </td>
                                        <td valign="top" align="center">
                                            <asp:GridView ID="gvDesign_Measurement" runat="server" AutoGenerateColumns="false" CssClass="gridCss">
                                                <Columns>
                                                    <asp:TemplateField>
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblMeasurement" Font-Size="15px" runat="server" Text='<%#Eval("Name") %>'>
                                                            </asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="ডিজাইন-মাপ">
                                                        <ItemTemplate>
                                                            <asp:TextBox ID="txtAmount" runat="server" ToolTip='<%#Eval("ID") %>' Width="50px"></asp:TextBox>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                            </asp:GridView>
                                        </td>
                                        <td valign="top">
                                            <asp:GridView ID="gvMasterKol" runat="server" AutoGenerateColumns="false" CssClass="gridCss">
                                                <Columns>
                                                    <asp:TemplateField HeaderText="মাস্টার কল">
                                                        <ItemTemplate>
                                                            <asp:CheckBox ID="chkSelect" runat="server" ToolTip='<%#Eval("ID") %>' Font-Size="15px"
                                                                Text='<%#Eval("Name") %>' />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                            </asp:GridView>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:GridView ID="gvOrderDetails" runat="server" AutoGenerateColumns="false" CssClass="gridCss"
                    ShowFooter="true">
                        <Columns>
                            <asp:TemplateField HeaderText="Item">
                                <ItemTemplate>
                                    <asp:Label ID="lblProduct" Font-Size="15px" runat="server" Text='<%#Eval("ProductName") %>'>
                                    </asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="মাপ">
                                <ItemTemplate>
                                    <asp:Label ID="lblMeasurement" Font-Size="15px" runat="server" Text='<%#Eval("ExtraField1") %>'>
                                    </asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="ডিজাইন">
                                <ItemTemplate>
                                   <asp:Label ID="lblDesign" Font-Size="15px" runat="server" Text='<%#Eval("ExtraField2") %>'>
                                    </asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="ডিজাইন-মাপ">
                                <ItemTemplate>
                                   <asp:Label ID="lblDesign_Measurement" Font-Size="15px" runat="server" Text='<%#Eval("ExtraField4") %>'>
                                    </asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="মাস্টার কল">
                                <ItemTemplate>
                                    <asp:Label ID="lblMasterkol" Font-Size="15px" runat="server" Text='<%#Eval("ExtraField3") %>'>
                                    </asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Note">
                                <ItemTemplate>
                                    <asp:Label ID="lblNote" Font-Size="15px" runat="server" Text='<%#Eval("Note") %>'>
                                    </asp:Label>
                                </ItemTemplate>
                                <FooterTemplate>
                                   Total
                                </FooterTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Qty">
                                <ItemTemplate>
                                    <asp:Label ID="lblQty" Font-Size="15px" runat="server" Text='<%#Eval("Quantity") %>'>
                                    </asp:Label>
                                </ItemTemplate>
                                <FooterTemplate>
                                    <asp:Label ID="lblTotalQty" Font-Size="15px" runat="server" >
                                    </asp:Label>
                                </FooterTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Charge">
                                <ItemTemplate>
                                    <asp:Label ID="lblCharge" Font-Size="15px" runat="server" Text='<%#Eval("Charge") %>'>
                                    </asp:Label>
                                </ItemTemplate>
                                <FooterTemplate>
                                    <asp:Label ID="lblTotalCharge" Font-Size="15px" runat="server" >
                                    </asp:Label>
                                </FooterTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="মাস্টার">
                                <ItemTemplate>
                                    <asp:Label ID="lblMaster" Font-Size="15px" runat="server" Text='<%#Eval("MasterName") %>'>
                                    </asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Delete">
                    <ItemTemplate>
                        <asp:LinkButton ID="lbDelete" runat="server" ForeColor="Red" CommandArgument='<%#Eval("OrderDetailsID") %>' OnClick="lbDelete_Click"
                        OnClientClick="if ( !confirm('Are you sure you want to delete?')) return false;"
                        >
                            X
                        </asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
   <%-- </ContentTemplate>
    </asp:UpdatePanel>--%>

</asp:Content>
